# 安装
 if [[ -z "$(docker images -q bladex/sentinel-dashboard:latest 2> /dev/null)" ]]; then
    docker pull bladex/sentinel-dashboard:latest
 fi
#	运行  对应的数据库xxl_job要先存入
  if [[ -z "$(docker ps -aqf "name=sentinel-pattern")" ]]; then
    docker run --name sentinel-pattern --add-host=project-pattern:192.168.0.101 -d  -p 10005:8858 --restart=always  bladex/sentinel-dashboard:latest
  else
      echo "sentinel-pattern running"
  fi


# 访问地址： http://localhost:10005/   sentinel/sentinel